package org.rbi.net;

import org.rbi.context.NetTransmitterContext;
import org.rbi.exceptions.TypeNotSupportedException;

import java.lang.reflect.InvocationTargetException;

public class StandardTCPNetTransmitter<T extends AbstractConnector> extends AbstractNetTransmitter{
    private AbstractConnector connector;
    public StandardTCPNetTransmitter(NetTransmitterContext netTransmitterContext, Class<T> connectorClazz) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException, TypeNotSupportedException, InterruptedException {
        super(netTransmitterContext);
        this.connector = connectorClazz.getConstructor(
                new Class[]{}
        ).newInstance();
        connector.connect(netTransmitterContext);
    }

    @Override
    public void sendBytes(Byte[] bytes) {

    }

    @Override
    public void readBytes(Byte[] bytes) {

    }
}
